# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=accerciser
pkgver=3.39.1
pkgrel=0
pkgdesc="Interactive Python accessibility explorer"
url="https://wiki.gnome.org/Apps/Accerciser"
# s390x and riscv64 blocked by librsvg
arch="noarch !s390x !riscv64"
license="BSD-3-Clause"
depends="libwnck3 py3-gobject3 py3-atspi gtk+3.0 librsvg py3-xlib ipython"
makedepends="
	appstream-glib-dev
	at-spi2-core-dev
	autoconf
	automake
	glib-dev
	gtk+3.0-dev
	itstool
	py3-gobject3-dev
	yelp-tools
"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-doc"
source="https://gitlab.gnome.org/GNOME/accerciser/-/archive/$pkgver/accerciser-$pkgver.tar.gz
	ipythonview-py-fix.patch"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8aa2d038459e0a3a168dec706ce7e4b9b1fb931b7d7802efea061858bf592291d1f1b264c926e2d1c76080a187a5b8749c1f6b5f6090bd1e812d02d188b2d6f9  accerciser-3.39.1.tar.gz
3226c1829da36faf1321adc3ba0fd266929d3a9824b4378ef5011c78fa7d3a189fd35b85f28ee75317fb7e2b8bd255a439d5f9c74616c12b693103c18dcc9b91  ipythonview-py-fix.patch
"
